package org.yu.team2023.flashdays.registries;

import net.minecraft.data.PackOutput;
import net.minecraftforge.common.data.LanguageProvider;

import java.util.Map;
import java.util.function.BiConsumer;
import java.util.function.Supplier;

public class SimpleCNLangProvider extends LanguageProvider {
    protected final Map<Supplier<String>,String> langCH;
    public SimpleCNLangProvider(PackOutput output, String modid, Map<Supplier<String>, String> langCH) {
        super(output, modid, "zh_cn");
        this.langCH = langCH;
    }

    @Override
    protected void addTranslations() {
        langCH.forEach((stringSupplier, s) -> add(stringSupplier.get(),s));
    }
}
